WARNING: This program has a bug, or error. So let's debug it!

RULE: Docstrings are a kind of comment that start and end with 3 sets of quotes around the text.

  • Click Run and read the error message that pops up. Then click OK.
  • Fix the docstring so that it starts and ends with 3 quotes. It will turn green when it's correct!
  • Click Run to see if you fixed the program. When it is fixed, click Submit and Next.

To navigate the page using the TAB key, first press ESC to exit the code editor.

def set_stage(): ""Sets the background and adds a sprite to the stage " stage.set_background("jungle") sprite = codesters.Sprite("toucan") set_stage()
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)